<head><title>OSA Codeshare System Login</title>
<script type="text/javascript">
<!--
function check(){
	event.returnValue=false;
	with(document.input){
		if(user.value.length==0){
			alert("Username cannot be empty!");return;
		}
		if(pwd.value.length==0){
			alert("Password cannot be empty!");return;
		}
	}
	event.returnValue=true;	
}
//-->
</script>

</head>
<body onLoad="document.input.user.focus()">
<form name="input" action="php/login.php" method="post" onSubmit="check()">
Username:
<input type="text" name="user" id="user" maxLength=20/>
Password:
<input type="password" name="pwd" id="pwd"/>
<input type="submit" value="Login" />
<input type="button" value="Proceed to main page" onClick="self.location.href='/php/main.php'"/>
</form><br />
<input type="button" value="Register" onClick="self.location.href='register.html'">
</body>

